sales=int(input())
base = 2000
if sales <= 3000:
    salary = base
elif 3000 < sales <= 7000:
    commission = sales * 0.10
    salary = base + commission
elif 7000 < sales <= 10000:
    commission = sales * 0.15
    salary = base + commission
else:
    commission = sales * 0.20
    salary = base + commission
print("员工的薪水总额是：", salary)